/*
 * MemberBO.java
 *
 * Created on February 13, 2007, 1:49 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Data;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Danny Beutler
 */
public class MemberBO {
    private String id;
    private String creditCardNumber;
    private Date startDate;
    private Date expireDate;
    private List<InterestBO> interests;
    private String password;
    private CustomerBO customer;
    private boolean alreadyInDB=false;
    private boolean dirty =true;
    private String backupId;
    
    /** Creates a new instance of MemberBO */
    public MemberBO(String GUID) {
        this.id=GUID;
    }
    
    /** Gets the member GUID */
    public String getId() {
        return id;
    }
    
    /** Gets the member creditCardNumber */
    public String getCreditCardNumber() {
        return creditCardNumber;
    }
    
    /** Sets the member creditCardNumber */
    public void setCreditCardNumber(String creditCardNumber) {
        dirty=true;
        this.creditCardNumber = creditCardNumber;
    }
    
    /** Gets the member creditCard StartDate */
    public Date getStartDate() {
        return startDate;
    }
    
    /** Sets the member creditCard StartDate */
    public void setStartDate(Date startDate) {
        dirty=true;
        this.startDate = startDate;
    }
    
    /** Gets the members credit card ExpirationDate */
    public Date getExpireDate() {
        return expireDate;
    }
    
    /** Sets the member creditCard ExpirationDate */
    public void setExpireDate(Date expireDate) {
        dirty=true;
        this.expireDate = expireDate;
    }
    
    /** Gets the member List of interests */
    public List<InterestBO> getInterests() {
        return interests;
    }
    
    /** Sets the member List of interests */
    public void setInterests(List<InterestBO> interests) {
        dirty=true;
        this.interests = interests;
    }
    
    /** Gets the member's Customer*/
    public CustomerBO getCustomer() {
        return customer;
    }
    /** Sets the customer */
    public void setCustomer(CustomerBO customer) {
        dirty=true;
        this.customer = customer;
    }
    
    /** Get the member's already in database boolean */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }
    
    /** Set the member's already in database boolean */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
    /** Get the member's dirty boolean */
    public boolean isDirty() {
        return dirty;
    }
    
    /** Set the member's Dirty boolean */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
    
    /** Get the member's backupID */
    public String getBackupId() {
        return backupId;
    }
    
     /** Set the member's backupID */
    public void setBackupId(String backupId) {
        this.backupId = backupId;
    }

    /** Get the member's password */
    public String getPassword() {
        return password;
    }

     /** Set the member's Password */
    public void setPassword(String password) {
        this.password = password;
    }
    
}
